/**
 * @Author: ycq_work@163.com
 * @DATE: 2023/7/18
 * @Description: 
*/
#ifndef NETWORKCOM_H
#define NETWORKCOM_H
#include <QObject>

#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrlQuery>
#include <QEventLoop>

#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>

#include <QCryptographicHash>
#include <unordered_map>

#include "../Mod/objectTextModel.h"
#include "../Mod/returnTextModel.h"

class NetWorkCom:QObject
{
public:
    NetWorkCom(tran::objectText &objectText);

private:
    tran::objectText *objectText;
    tran::returnText *returnText;
    //QTcpServer server;
    QTcpSocket *socket;
    // void
    QString network();

private:
    void generatedSign();

public:
    QString begin();
};

#endif //NETWORKCOM_H
